package com.yznote.cloudesk.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeskFile implements Serializable {
    public DeskFile(Long userId, Long fileId, Integer x, Integer y) {
        this.fileId = fileId;
        this.userId = userId;
        this.x = x;
        this.y = y;
    }
    public DeskFile(Long fileId, Integer x, Integer y) {
        this.fileId = fileId;
        this.x = x;
        this.y = y;
    }

    /**
     * 文件id
     */
    private Long fileId;
    /**
     * 文件名
     */
    private String fileName;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 文件类型
     */
    private Long fileType;
    /**
     * 文件层级
     */
    private int fileLevel;
    /**
     * 父文件id
     */
    private Long fileFaId;
    /**
     * 文件路径
     */
    private String filePath;
    /**
     * x轴
     */
    private Integer x;
    /**
     * y轴
     */
    private Integer y;
    /**
     * 文件图标
     */
    private String fileIcon;
    /**
     * 文件字节大小
     */
    private Long memory;
}
